import { stringify } from 'qs';
import request from '../utils/request';

export async function summaryTotalData(params) {
  return request(`/analytics/summary_total_data.json?${stringify(params)}`);
}

export async function getData(params) {
  return request(`/analytics/summary.json?${stringify(params)}`);
}

export async function summaryHistogram(params) {
  return request(`/analytics/summary_histogram.json?${stringify(params)}`);
}
